using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository.Mapping
{

    class LoansAmortizeDetailMap : ClassMap<LoansAmortizeDetail>
    {

        public LoansAmortizeDetailMap()
        {
            Table("LOANS_AMORTIZE_DETAIL");
            Id(x => x.LoansAmortizeDetailID, "LOANS_AMORTIZE_DETAIL_ID").GeneratedBy.Identity();

            Map(x => x.InterestID, "INTEREST_ID");
            Map(x => x.LoansHeaderID, "LOANS_HEADER_ID");
            Map(x => x.Period, "PERIOD");
            Map(x => x.Date, "DATE");
            Map(x => x.NOOFDays, "NO_OF_DAYS");
            Map(x => x.InterestRate, "INTEREST_RATE");
            Map(x => x.BeginningBalance, "BEGINNING_BALANCE");
            Map(x => x.EndingBalance, "ENDING_BALANCE");
            Map(x => x.Principal, "PRINCIPAL");
            Map(x => x.Interest, "INTEREST");
            Map(x => x.Installment, "INSTALLMENT");
            Map(x => x.PeriodCal, "PERIOD_CAL");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");

        }


    }

}